package com.jeesite.modules.ch.entity.param;

import lombok.Getter;

import java.util.HashMap;
import java.util.Map;

@Getter
public enum JiesuanStatus {

    SHENQING("1","待审核"),
    TONGUO("2","待打款"),
    WEITONGGUO("3","未通过"),
    YIDAKUAN("4","已打款"),
            ;

    private String code;
    private String desc;

    private JiesuanStatus(String code, String desc) {
        this.code = code;
        this.desc = desc;
    }

    public static Map<String,String> getByMap() {
        Map<String,String> map = new HashMap<String,String>();
        for(JiesuanStatus j : JiesuanStatus.values()) {
            map.put(j.getCode(),j.getDesc());
        }
        return map;
    }
}
